/**
 * 
 */
package com.fan.shop.hibernate.utils;

import org.hibernate.cfg.ImprovedNamingStrategy;
import org.hibernate.internal.util.StringHelper;

/**
 * @author Fan
 *
 */
public class ShopHibernateNamingStrategy extends ImprovedNamingStrategy {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7868789688677242886L;

	public String classToTableName(String className)
	{
		return StringHelper.unqualify(className).toUpperCase() + "S";
	}
	
	public String propertyToColumnName(String propertyName)
	{
		return propertyName.toUpperCase();
	}
	
	public String tableName(String tableName)
	{
		return tableName;
	}
	
	public String columnName(String columnName)
	{
		return columnName;
	}
}
